﻿<%@ Page Language="c#" CodeBehind="Client.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.CM.ClientPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>客户表单</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
  <script language="JavaScript" src="../../../Css/meizzDate.js"></script>
  <script type="text/javascript">
  //<!--
  function displaypenal() {
    var ch = document.getElementById("<%= cbx_customer.ClientID %>");
    var panel = document.getElementById("<%= penal.ClientID %>");
    panel.style.display = ch.checked ? "" : "none";
  }
  //-->
  </script>
</head>
<body>
  <form runat="server">
    <uds:PageTitle runat="server" HintImage="~/DataImages/ClientManage.gif" Title="客户表单" />
    <table id="Table1" cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
      <tr>
        <td align="right">
          <table class="gbtext" id="Table2" style="border-collapse: collapse" bordercolor="#93bee2" cellspacing="0" cellpadding="0" width="100%" align="center" border="1">
            <tr>
              <td width="90" bgcolor="#e8f4ff" height="28">&nbsp;客户编号</td>
              <td height="28">&nbsp;<asp:Literal ID="ltl_ID" runat="server" /></td>
              <td width="90" bgcolor="#e8f4ff" height="28">&nbsp;添加日期</td>
              <td height="28">&nbsp;<asp:TextBox ID="tbx_Birthday" runat="server" CssClass="inputcss" Width="250px" ReadOnly="True" /></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="28">&nbsp;客户名称</td>
              <td height="28">&nbsp;<asp:TextBox ID="tbx_Name" runat="server" CssClass="inputcss" Width="250px" /><asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="tbx_Name" ErrorMessage="客户名称重复" EnableClientScript="False" />
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="tbx_Name" ErrorMessage="客户名称不能为空" Display="Dynamic" /></td>
              <td bgcolor="#e8f4ff" height="28">&nbsp;客户简称</td>
              <td height="28">&nbsp;<asp:TextBox ID="tbx_ShortName" runat="server" CssClass="inputcss" Width="250px" /></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="28">&nbsp;客户分类</td>
              <td height="28">
                <asp:CheckBox ID="cbx_zhongduan" runat="server" Text="终端客户" /><asp:CheckBox ID="cbx_qudao" runat="server" Text="渠道商" /><asp:CheckBox ID="cbx_shehui" runat="server" Text="社会关系" /><asp:CheckBox ID="cbx_meiti" runat="server" Text="媒体公关" /></td>
              <td bgcolor="#e8f4ff" height="28">&nbsp;更新时间</td>
              <td height="28">&nbsp;<asp:TextBox ID="tbx_UpdateTime" runat="server" CssClass="inputcss" Width="250px" ReadOnly="True" /></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="28">&nbsp;主要联系人</td>
              <td height="28" style="width: 400px">&nbsp;
                <asp:HyperLink ID="hlk_Chiefman" runat="server" />&nbsp;
                <input class="redbuttoncss" onclick='<%="window.open("+"\"ClientLinkmanList.aspx?ClientID="+CurrentClientID+"\");"%>' type="button" value="查看全部"></td>
              <td bgcolor="#e8f4ff" height="28">&nbsp;职务</td>
              <td height="28">&nbsp;<asp:Label ID="lbl_position" runat="server" /></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="28">&nbsp;联系电话</td>
              <td height="28">&nbsp;<asp:Label ID="lbl_chieftel" runat="server" /></td>
              <td bgcolor="#e8f4ff" height="28">&nbsp;隶属区域</td>
              <td height="28">&nbsp;<asp:TextBox ID="tbx_affiliatedarea" runat="server" CssClass="inputcss" Width="250px" /></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="28">&nbsp;添加人员</td>
              <td height="28">&nbsp;<asp:Literal ID="ltl_AddManName" runat="server" />
                <asp:Panel ID="pnl_Leader" runat="server" Width="273px">
                  <asp:DropDownList ID="ddl_AddMan" runat="server" />
                  <asp:Button ID="btn_LookTel" runat="server" CssClass="redbuttoncss" Text="查看联系电话" />
                  <asp:Button ID="btn_ChangeAddMan" runat="server" CssClass="redbuttoncss" Text="修改" />
                </asp:Panel>
              </td>
              <td bgcolor="#e8f4ff" height="28">&nbsp;联系电话</td>
              <td height="28">&nbsp;<asp:Literal ID="ltl_addmantel" runat="server" /></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="28">&nbsp;企业网址</td>
              <td height="28">&nbsp;<asp:TextBox ID="tbx_URL" runat="server" CssClass="inputcss" Width="250px" /></td>
              <td bgcolor="#e8f4ff" height="28">&nbsp;邮政编码</td>
              <td height="28">&nbsp;<asp:TextBox ID="tbx_zip" runat="server" CssClass="inputcss" Width="250px" /></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="28">&nbsp;企业地址</td>
              <td colspan="3" height="28">&nbsp;<asp:TextBox ID="tbx_address" runat="server" CssClass="inputcss" Width="645px" /></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="28">&nbsp;企业性质</td>
              <td height="28">
                <asp:CheckBox ID="cbx_government" runat="server" Text="政府" /><asp:CheckBox ID="cbx_stateowned" runat="server" Text="国营" /><asp:CheckBox ID="cbx_private" runat="server" Text="民营" /><asp:CheckBox ID="cbx_foreign" runat="server" Text="外资" /><asp:CheckBox ID="cbx_market" runat="server" Text="上市" /></td>
              <td bgcolor="#e8f4ff" height="28">&nbsp;注册资本</td>
              <td height="28">&nbsp;<asp:TextBox ID="tbx_money" runat="server" CssClass="inputcss" Width="250px" /></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="46">&nbsp;所处行业</td>
              <td colspan="3" height="46">
                <asp:CheckBox ID="cbx_realestate" runat="server" Text="房地产" /><asp:CheckBox ID="cbx_IT" runat="server" Text="IT" /><asp:CheckBox ID="cbx_business" runat="server" Text="商业贸易" /><asp:CheckBox ID="cbx_telecom" runat="server" Text="电信" /><asp:CheckBox ID="cbx_post" runat="server" Text="邮政通讯" /><asp:CheckBox ID="cbx_consultation" runat="server" Text="咨询服务" /><asp:CheckBox ID="cbx_travel" runat="server" Text="旅游业" /><asp:CheckBox ID="cbx_bus" runat="server" Text="交通运输" /><br>
                <asp:CheckBox ID="cbx_stock" runat="server" Text="金融证券" /><asp:CheckBox ID="cbx_insurance" runat="server" Text="保险业" /><asp:CheckBox ID="cbx_tax" runat="server" Text="税务" /><asp:CheckBox ID="cbx_make" runat="server" Text="制造业" /><asp:CheckBox ID="cbx_electric" runat="server" Text="家电" /><asp:CheckBox ID="cbx_clothe" runat="server" Text="服装" /><asp:CheckBox ID="cbx_food" runat="server" Text="食品" /><asp:CheckBox ID="cbx_medicine" runat="server" Text="医药" /><asp:CheckBox ID="cbx_mechanism" runat="server" Text="机械" /><asp:CheckBox ID="cbx_auto" runat="server" Text="汽车制造" /></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="28">&nbsp;公司规模</td>
              <td height="28">&nbsp;<asp:TextBox ID="tbx_staffnumber" runat="server" CssClass="inputcss" Width="250px" /></td>
              <td bgcolor="#e8f4ff" height="28">&nbsp;主营业务</td>
              <td height="28">&nbsp;<asp:TextBox ID="tbx_operation" runat="server" CssClass="inputcss" Width="250px" /></td>
            </tr>
            <tr>
              <td valign="top" bgcolor="#e8f4ff">&nbsp;企业简介</td>
              <td colspan="3">&nbsp;<asp:TextBox ID="tbx_introduce" runat="server" Width="645px" TextMode="MultiLine" /><br>
                &nbsp;附件：
                <input class="inputcss" id="File1" style="width: 600px; height: 19px" type="file" size="58" name="File1" runat="server"><br>
                <asp:Repeater ID="rpt_Attachment" runat="server">
                  <ItemTemplate>
                    <a href='<%# Request.Path.Substring(0,Request.Path.LastIndexOf("/"))+"\\Attachment\\"+DataBinder.Eval(Container.DataItem,"ID")+DataBinder.Eval(Container.DataItem,"Extension") %>' target="_blank"><%# DataBinder.Eval(Container.DataItem,"Path")+"," %> </a>
                  </ItemTemplate>
                </asp:Repeater>
              </td>
            </tr>
            <tr>
              <td valign="top" bgcolor="#e8f4ff" height="40">&nbsp;信息化程度</td>
              <td colspan="3" height="40">&nbsp;<asp:TextBox ID="tbx_IT" runat="server" Width="645px" TextMode="MultiLine" /></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="28">&nbsp;电脑数量</td>
              <td height="28">&nbsp;<asp:TextBox ID="tbx_pcnumber" runat="server" CssClass="inputcss" Width="250px" />台<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="tbx_pcnumber" ErrorMessage="请输入数字" Display="Dynamic" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="tbx_pcnumber" ValidationExpression="\d*">请输入数字</asp:RegularExpressionValidator></td>
              <td bgcolor="#e8f4ff" height="28">&nbsp;网络状况</td>
              <td height="28">
                <asp:CheckBox ID="cbx_internet" runat="server" Text="互联网" /><asp:CheckBox ID="cbx_WAN" runat="server" Text="WAN" /><asp:CheckBox ID="cbx_LAN" runat="server" Text="LAN" /></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="28">&nbsp;专业IT人员</td>
              <td height="28">&nbsp;<asp:TextBox ID="tbx_ITStaffs" runat="server" CssClass="inputcss" Width="250px" />人<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbx_ITStaffs" ErrorMessage="请输入数字" Display="Dynamic" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="tbx_ITStaffs" ValidationExpression="\d*">请输入数字</asp:RegularExpressionValidator></td>
              <td height="28"></td>
              <td height="28"></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="28">&nbsp;IT部门名称</td>
              <td height="28">&nbsp;<asp:TextBox ID="tbx_ITdepartment" runat="server" CssClass="inputcss" Width="250px" /></td>
              <td bgcolor="#e8f4ff" height="28">&nbsp;负责人</td>
              <td height="28">
                <asp:TextBox ID="tbx_principal" runat="server" CssClass="inputcss" Width="250px" /></td>
            </tr>
            <tr>
              <td valign="top" bgcolor="#e8f4ff" height="28">&nbsp;目前系统</td>
              <td colspan="3" height="28">&nbsp;<asp:TextBox ID="tbx_system" runat="server" Width="645px" TextMode="MultiLine" /></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="28">&nbsp;客户来源</td>
              <td colspan="3" height="28">
                <asp:CheckBox ID="cbx_sellman" runat="server" Text="销售主动联系" /><asp:CheckBox ID="cbx_just" runat="server" Text="以前认识" /><asp:CheckBox ID="cbx_introduce" runat="server" Text="熟人介绍" /><asp:CheckBox ID="cbx_customer" runat="server" Text="客户主动联系" AutoPostBack="True" /></td>
            </tr>
            <tr>
              <td bgcolor="#e8f4ff" height="28">&nbsp;客户主动</td>
              <td colspan="3" height="28">
                <asp:Panel ID="penal" runat="server" CssClass="inputcss" Width="563px" Visible="False">
                  <asp:CheckBox ID="cbx_Email" runat="server" Text="电子邮件" />
                  <asp:CheckBox ID="cbx_media" runat="server" Text="媒体宣传" />
                  <asp:CheckBox ID="cbx_Web" runat="server" Text="查询网站" />
                  <asp:CheckBox ID="cbx_proseminar" runat="server" Text="研讨会" />
                  <asp:CheckBox ID="cbx_exhibition" runat="server" Text="展览会" />
                  <asp:CheckBox ID="cbx_EMS" runat="server" Text="直邮" />
                </asp:Panel>
              </td>
            </tr>
            <tr>
              <td align="center" colspan="4" height="28">&nbsp;
                <asp:Panel ID="pnl_MyCustom" runat="server" Width="260px">
                  <asp:Button ID="btn_OK" runat="server" Width="70px" CssClass="buttoncss" Text=" 确 定 " />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                  <asp:Button ID="btn_AddContact" runat="server" CssClass="buttoncss" Text="添加接触" /></asp:Panel>
                <asp:Panel ID="pnl_Leader1" runat="server" Width="175px" Visible="False">
                  <asp:Button ID="btn_LookContact" runat="server" CssClass="buttoncss" Text="查看接触" />
                </asp:Panel>
              </td>
            </tr>
          </table>
          <asp:Label ID="lbl_Message" runat="server" Width="92px" Visible="False" /><a href="javascript:window.close();">关闭窗口</a> </td>
      </tr>
    </table>
  </form>
</body>
</html>
